@extends('layouts.main')
@section('title', "新增通讯录")
@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">
            新增通讯录
        </div>
        <div class="panel-body">
            <form role="form" action="{{route('user.create.post')}}" method="post">
                {{csrf_field()}}
                <div class="form-group">
                    <label>姓名</label>
                    <input type="text" name="name" class="form-control" value="{{old('name')}}">
                </div>
                <div class="form-group">
                    <label>手机号码</label>
                    <input type="text" name="telephone" class="form-control" value="{{old('telephone')}}">
                </div>
                <div class="form-group">
                    <label>工作单位</label>
                    <input type="text" name="company" class="form-control" value="{{old('company')}}">
                </div>
                <div class="form-group">
                    <label>邮箱地址</label>
                    <input type="text" name="email" class="form-control" value="{{old('email')}}">
                </div>
                <button type="submit" class="btn btn-primary">添加联系人</button>
                <a class="btn btn-danger" href="javascript:history.go(-1)">返回</a>
            </form>
        </div>
    </div>
@endsection